<?php if($products): ?>
    <?php slot('contents') ?>
        <div class="h2">
        	<h2><?php echo __('Pealkiri') ?></h2>
        	<!--<a href="#" class="link1"><?php echo __('Vaata rohkem') ?> <img src="/project_css_js/img/link.png" alt="" /></a>-->
        	<div class="clear"></div>
        </div>
        <div id="product-slider">
        	<div id="viewport">
        		<ul>
                  <?php foreach($products as $j => $product): ?>
        			<li>
        				<img src="<?php echo @myPicture::getInstance($product['brand_picture'])->thumbnail(180, 91, 'center')->url()?>" alt="" />
        				<a href="<?php echo $links[$product['id']] ?>"><?php echo $product['Translation'][$sf_user->getCulture()]['name'] ?></a>
        			</li>
                  <?php endforeach ?>
        		</ul>
        	</div>
        	<a id="p-previous"><img src="/project_css_js/img/product_slider_left.png" alt="" /></a>
        	<a id="p-next"><img src="/project_css_js/img/product_slider_right.png" alt="" /></a>
        </div>
    <?php end_slot() ?>
<?php endif ?>